package com.syh.appshare;

import java.util.List;

import android.content.Context;

import com.syh.appshare.common.utils.Utils;
import com.syh.appshare.objects.InstalledApkInfo;

public class Memory {

	private static Memory INSTANCE = null;
	private static Context context;
	private Memory() {
	}

	public static synchronized Memory getInstance(Context c) {
		if (INSTANCE == null) {
			INSTANCE = new Memory();
		}
		context=c;
		return INSTANCE;
	}
	
	private List<InstalledApkInfo> installedApkList=null;
	
	public List<InstalledApkInfo> getInstalledApkList(){
		if(installedApkList==null){
			installedApkList=Utils.getInstalledApkList(context);
		}
		return installedApkList;
	}
}
